<script>
	import setting from './common/js/setting'
	export default {
		data() {
			return {
				//可以缓存到本地
				theme:{
					type:'day', //主题 day night
					modeColor:'#fb7299',
					modeFontColor:'white'
				}
			}
		},
		watch: {
			theme: {
				immediate: true,
				deep: true,
				handler(newValue,oldValue) {
					console.log(newValue,oldValue)
					setting.setThemeProprerty(this.theme)
				}
			}
		},
	}
</script>

<style lang="less">
	
    /*每个页面公共css */
	@import "common/css/variable.css"; //引入变量样式
	
	@import "common/css/common.css"; //引入公共样式
	@import "common/css/mt-used.less"; //引入博客公共样式
	
	@import "common/css/uni-app.css"; //引入uni-app样式
	@import "common/css/wx.css"; //兼容wx样式

	@import "common/css/ttf.css"; //引入字体
	@import "common/css/animation.css"; //引入动画
	@import "common/fontAwesome/stylesheet.css"; //引入fontawesome
	@import "common/fontAwesome/font-awesome.css";


	* ,page{
		font-family: 'blog';
	}


	page{
		background-color:var(--theme-color-half);
		color: var(--theme-font-color);
	}
</style>